//
//  MCCCellUISetting.m
//  MindCloudConfigCellModule_Example
//
//  Created by JinganMac on 2020/10/21.
//  Copyright © 2020 Allen. All rights reserved.
//

#import "MCCCellUISetting.h"

@implementation MCCCellUISetting

#pragma mark 应急装备Cell
+(CellConfigSetting *)emergencyEquipCellConfigureSetting{
    
    CellConfigSetting *setting = [CellConfigSetting new];
    setting.cellType = 2;
    setting.frontSpace = 70;
    setting.bottomSpace = 0;
    setting.sideSpace = 12;
    setting.topSpace = 10;
    setting.cellBorderColor = @"#CCCCCC";
    setting.cellCornerRadius = 5;
    
    CellSubViewsConfigSetting *sub1 = [CellSubViewsConfigSetting creatSubConfigBy:4 subTitle:@"----" keyValue:@"equipName"];
    
    CellSubViewsConfigSetting *sub2 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"装备类型：" keyValue:@"equipTypeNameDes"];
    
    CellSubViewsConfigSetting *sub3 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"编码：" keyValue:@"equipCode"];
    
    CellSubViewsConfigSetting *sub4 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"规格型号：" keyValue:@"equipModel"];
    
    CellSubViewsConfigSetting *sub5 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"有效期至：" keyValue:@"endDateStstatusDes"];
    sub5.regularDes = KRegular1Content;
    
    CellSubViewsConfigSetting *sub6 = [CellSubViewsConfigSetting creatAttributeSubBy:@"hexColor" subTitle:@"当前状态：" keyValue:@"statusDes"];
    
    setting.subConfigData = @[sub1,sub2,sub3,sub4,sub5,sub6];
    
    return setting;
    
}

#pragma mark 应急装备详情Cell

+(CellConfigSetting *)emergencyEquipDetailCellConfigureSetting{
    
    CellConfigSetting *setting = [CellConfigSetting new];
    setting.cellType = 1;
    setting.frontSpace = 120;
    setting.bottomSpace = 14;
    setting.sideSpace = 24;
    setting.topSpace = 10;
    
    CellSubViewsConfigSetting *sub1 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"装备名称：" keyValue:@"equipName"];
    
    CellSubViewsConfigSetting *sub2 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"装备类型：" keyValue:@"equipTypeNameDes"];
    
    CellSubViewsConfigSetting *sub3 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"装备编码：" keyValue:@"equipCode"];
    
    CellSubViewsConfigSetting *sub4 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"装备来源：" keyValue:@"equipSourceDes"];
    
    CellSubViewsConfigSetting *sub5 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"规格型号：" keyValue:@"equipModel"];
    
    CellSubViewsConfigSetting *sub6 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"装备数量：" keyValue:@"equipCount"];
    
    CellSubViewsConfigSetting *sub7 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"装备单价(元)：" keyValue:@"equipPrice"];
    
    CellSubViewsConfigSetting *sub8 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"计量单位：" keyValue:@"equipUnit"];
    
    CellSubViewsConfigSetting *sub9 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"生产厂家：" keyValue:@"equipProducer"];
    
    CellSubViewsConfigSetting *sub10 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"出厂日期：" keyValue:@"produceDateDes"];
    
    CellSubViewsConfigSetting *sub11 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"使用年限：" keyValue:@"limitYear"];
    
    CellSubViewsConfigSetting *sub12 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"购买日期：" keyValue:@"buyDateDes"];
    
    CellSubViewsConfigSetting *sub13 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"装备用途：" keyValue:@"use"];
    
    CellSubViewsConfigSetting *sub14 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"装备状态：" keyValue:@"statusDes"];
    
    CellSubViewsConfigSetting *sub15 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"装备库名称：" keyValue:@"storeName"];
    
    CellSubViewsConfigSetting *sub16 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"登记类型：" keyValue:@"registerTypeDes"];
    
    CellSubViewsConfigSetting *sub17 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"定期检查间隔(天)：" keyValue:@"daySpace"];
    
    CellSubViewsConfigSetting *sub18 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"定期保修间隔(天)：" keyValue:@"dayMaintSpace"];
    
    CellSubViewsConfigSetting *sub19 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"备注：" keyValue:@"remark"];
    
    setting.subConfigData = @[sub1,sub2,sub3,sub4,sub5,sub6,sub7,sub8,sub9,sub10,sub11,sub12,sub13,sub14,sub15,sub16,sub17,sub18,sub19];
    
    return setting;
    
}


#pragma mark 应急物资Cell
+(CellConfigSetting *)emergencyMaterialCellConfigureSetting{
    
    CellConfigSetting *setting = [CellConfigSetting new];
    setting.cellType = 2;
    setting.frontSpace = 70;
    setting.bottomSpace = 0;
    setting.sideSpace = 12;
    setting.topSpace = 10;
    setting.cellBorderColor = @"#CCCCCC";
    setting.cellCornerRadius = 5;
    
    CellSubViewsConfigSetting *sub1 = [CellSubViewsConfigSetting creatSubConfigBy:4 subTitle:@"----" keyValue:@"materialName"];
    
    CellSubViewsConfigSetting *sub2 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"资源编码：" keyValue:@"codeDes"];
    
    CellSubViewsConfigSetting *sub3 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"级别编码：" keyValue:@"levelCodeDes"];
    
    CellSubViewsConfigSetting *sub4 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"物资类型：" keyValue:@"materialTypeName"];
    
    CellSubViewsConfigSetting *sub5 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"物资数量：" keyValue:@"materialCount"];
    
    setting.subConfigData = @[sub1,sub2,sub3,sub4,sub5];
    
    return setting;
}

#pragma mark 应急物资详情
+(CellConfigSetting *)emergencyMaterialDetailCellConfigureSetting{
    
    CellConfigSetting *setting = [CellConfigSetting new];
    setting.cellType = 1;
    setting.frontSpace = 70;
    setting.bottomSpace = 14;
    setting.sideSpace = 24;
    setting.topSpace = 10;
    
    CellSubViewsConfigSetting *sub1 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"物资名称：" keyValue:@"materialName"];
    
    CellSubViewsConfigSetting *sub2 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"资源编码：" keyValue:@"codeDes"];
    
    CellSubViewsConfigSetting *sub3 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"级别编码：" keyValue:@"levelCodeDes"];
    
    CellSubViewsConfigSetting *sub4 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"物资类型：" keyValue:@"materialTypeName"];
    
    CellSubViewsConfigSetting *sub5 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"物资编码：" keyValue:@"materialCode"];
    
    CellSubViewsConfigSetting *sub6 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"物资数量：" keyValue:@"materialCount"];
    
    CellSubViewsConfigSetting *sub7 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"备注：" keyValue:@"remark"];
    
    setting.subConfigData = @[sub1,sub2,sub3,sub4,sub5,sub6,sub7];
    
    return setting;
}

#pragma mark 储罐详情Row1
+(CellConfigSetting *)storageInfoRow1{
    CellConfigSetting *setting = [CellConfigSetting new];
    setting.cellType = 1;
    setting.frontSpace = 130;
    setting.cellContentEdge = UIEdgeInsetsMake(10, 28, 15, 10);
    
    CellSubViewsConfigSetting *sub1 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"储罐名称：" keyValue:@"tankName"];
    
    CellSubViewsConfigSetting *sub2 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"统一编码：" keyValue:@"unifiedCode"];
    
    CellSubViewsConfigSetting *sub3 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"储罐编号：" keyValue:@"number"];
    
    CellSubViewsConfigSetting *sub4 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"区域位置：" keyValue:@"areaLocation"];
    
    CellSubViewsConfigSetting *sub5 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"所属罐组编号：" keyValue:@"tankGroupNumber"];
    
    CellSubViewsConfigSetting *sub6 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"所属储罐区：" keyValue:@"areaName"];
    
    CellSubViewsConfigSetting *sub61 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"是否高危储罐：" keyValue:@"highRiskTankDes"];
    
    CellSubViewsConfigSetting *sub7 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"存储介质：" keyValue:@"chineName"];
    sub7.tFontColor = @"326BD8";
    sub7.couldTouch = YES;
    
    CellSubViewsConfigSetting *sub8 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"投产日期：" keyValue:@"productDateDes"];
    
    setting.subConfigData = @[sub1,sub2,sub3,sub4,sub5,sub6,sub61,sub7,sub8];
    
    return setting;
}

#pragma mark 储罐详情Row2
+(CellConfigSetting *)storageInfoRow2{
    CellConfigSetting *setting = [CellConfigSetting new];
    setting.cellType = 1;
    setting.frontSpace = 130;
    setting.cellContentEdge = UIEdgeInsetsMake(10, 28, 15, 10);
    
    CellSubViewsConfigSetting *sub1 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"储罐容积(m³)：" keyValue:@"designReserves"];
    
    CellSubViewsConfigSetting *sub2 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"储罐半径(m)：" keyValue:@"tankRadius"];
    
    CellSubViewsConfigSetting *sub3 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"储罐高度(m)：" keyValue:@"tankHeight"];
    
    CellSubViewsConfigSetting *sub4 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"设计储量：" keyValue:@"designReserves"];
    
    CellSubViewsConfigSetting *sub5 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"是否压力容器：" keyValue:@"pressureVesselDes"];
    
    CellSubViewsConfigSetting *sub8 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"储罐位置分类：" keyValue:@"tankLocationCateDes"];
    
    CellSubViewsConfigSetting *sub9 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"储罐形式：" keyValue:@"tankTypeDes"];
    
    CellSubViewsConfigSetting *sub10 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"储罐结构：" keyValue:@"tankStructureDes"];
    
    CellSubViewsConfigSetting *sub11 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"储罐材质：" keyValue:@"tankMaterialDes"];
    
    CellSubViewsConfigSetting *sub12 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"进出料方式：" keyValue:@"feedDischargMode"];
    
    setting.subConfigData = @[sub1,sub2,sub3,sub4,sub5,sub8,sub9,sub10,sub11,sub12];
    
    return setting;
}
//
//安全设备：
//有无围堰：
//火灾危险性等级：
//是否配套火炬：
//是否设置保温/保冷：
//是否设置自动喷淋：
                            
#pragma mark 储罐详情Row3
+(CellConfigSetting *)storageInfoRow3{
    CellConfigSetting *setting = [CellConfigSetting new];
    setting.cellType = 1;
    setting.frontSpace = 130;
    setting.cellContentEdge = UIEdgeInsetsMake(10, 28, 15, 10);
    
    CellSubViewsConfigSetting *sub1 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"安全设备：" keyValue:@"safeEquip"];
    
    CellSubViewsConfigSetting *sub2 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"有无围堰：" keyValue:@"cofferdamDes"];
    
//    CellSubViewsConfigSetting *sub3 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"火灾危险性等级：" keyValue:@"fireHazardRateDes"];
    
    CellSubViewsConfigSetting *sub4 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"是否配套火炬：" keyValue:@"setFireDes"];
    
    CellSubViewsConfigSetting *sub5 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"是否设置保温/保冷：" keyValue:@"warmCoolDes"];
    
    CellSubViewsConfigSetting *sub6 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"是否设置自动喷淋：" keyValue:@"autoSprayDes"];

    CellSubViewsConfigSetting *sub7 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"是否设置消防水炮/泡沫炮：" keyValue:@"fireWaterFoamDes"];
                                
    CellSubViewsConfigSetting *sub8 = [CellSubViewsConfigSetting creatSubConfigBy:0 subTitle:@"备注：" keyValue:@"remarks"];
    
    setting.subConfigData = @[sub1,sub2,sub4,sub5,sub6,sub7,sub8];
    
    return setting;
}

@end
